﻿using System;
using System.Collections.Generic;
using System.ServiceProcess;
using System.Threading;
using SDT.CrawlSystem.Servers;

namespace WCService
{
    public partial class WCService : ServiceBase
    {
        private WCContainer container = WCContainer.Instance;

        public WCService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {   
            container.StartAll();
            base.OnStart(args);
        }

        public void Run()
        {
            container.StartAll();
        }

        protected override void OnStop()
        {          
            base.OnStop();
        }
    }
}
